DPM2 Communication Driver

 

DPM2 Communication Driver is the driver to communicate with electronic display board controller of Scon in Korea.

 

1. Read settings

 

<Figure 1> is read setting example of  DPM2 communication driver. 

<Figure 1>  Read setting example of  DPM2 communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(4800), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to setting of controller.

 

DPM2 communication driver¡¯s read schedule 

Read schedule setting parameters are as follows:

1) Station – Controller station number.

2) Read Command – Command = DI, DO, AI, AO, CT...

3) Read Start Address Read address of input or output card.  According to setting switch of input or output card.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – Read size = fixed according to input or output card. DI, DO = 1, AI, AO = 16, CT = 12.

 

Read schedule example) 

READ, 0, DI,   0,   5,     4,

READ, 0, DI,   0,   6,     5,

READ, 0, AI,   0,  19,    10,

READ, 0, AI,   0,  20,    26,

READ, 0, AI,   0,  21,    42,

READ, 0, CT,  0,  23,   100,

 

2. Writing settings

You can write the setting value by using write settings.

DPM2 communication driver can write digital, analog output card and S-800S(MOSAIC INDICATOR) connected to DPM2 controller.

 

Bit Write

Bit write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             DPM CPU card number = 0 ~ 256.

3)  ADDRESS           Write card, channel address.

High 3 digit = card number,

Low 1 digit = channel number.

4)  Extra1                   Don't care.

5)  Extra2                   Don't care.

 

Write example 1) 

PORT:0,   STATION:1,   ADDRESS:0100,  Extra1 :  , Extra2 : 0

The setting parameter shown above is a write(On/Off) example of 0 channel number(DO card), 10 card number of 1 CPU.

 

Word Write of AO, CNT card

Word write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             DPM CPU card number = 0 ~ 256.

3)  ADDRESS           Write card address.

4)  Extra1                   Card type = AO, CNT.

5)  Extra2                   Channel value = 0 ~ 15.

 

Write example 1) 

PORT:0,   STATION:1,   ADDRESS:2,  Extra1:AO,  Extra2:5 

The setting parameter shown above is a write example of 5 channel number(AO), 2 card number of 1 CPU.

 

Word Write of S-800S Mosaic Indicator

Word write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             DPM CPU card number = 0 ~ 256.

3)  ADDRESS           Write card address.

4)  Extra1                   Command = CMD, DISP.

5)  Extra2                   Command type when CMD write command.

1 : dot position change,

1 : Polarity change,

4 : address change.

 

Write example 1) 

PORT:0,   STATION:1,   ADDRESS:2,  Extra1:CMD,  Extra2:1, Output value : 2

The setting parameter shown above is a write example of dot position change(changed dot position = 2).

 

Write example 2) 

PORT:0,   STATION:1,   ADDRESS:2,  Extra1:DISP,  Extra2 : , Output value : 2

The setting parameter shown above is a write example to S-800S Mosaic Indicator, display value = 2, card address = 2, CPU number = 1.